import './assets/main.css'

import { createApp } from 'vue'
import { createPinia,setMapStoreSuffix } from 'pinia'

import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import moment from 'moment'
const app = createApp(App)
app.config.globalProperties.$moment = moment
app.use(createPinia())
app.use(router)

app.use(Antd).mount('#app')

function setRem() {
  const scale = document.documentElement.clientWidth / 1920;
  document.documentElement.style.fontSize = 100 * scale + 'px';
  // console.log('body_fontSize',document.documentElement.style.fontSize)
}

window.onresize = function() {
  setRem();
}

setRem();
